<script type="text/javascript" language="javascript">

	function checkAnswer(url) {
		document.getElementById("answercheckblock").innerHTML = '';
		var chosenanswer = getCheckedRadio("choices");
		
		if(chosenanswer.length == '') {
		   alert('Please select the answer');
		   return;
		}  	
		var processedurl = '/poc' + url + '&useranswer=' + chosenanswer;
	    retrieveURL(processedurl, 'answercheckblock');
	  }	  

   function processEnter(e, url) {
       if(e && e.keyCode == 13) {
    	   checkAnswer(url);
       }
    }

</script>